<template>
  <div>
    <van-nav-bar title="注册账号" left-arrow @click-left="$router.go(-1)"/>
    <van-form @submit="onSubmit">
  <van-field
    v-model="username"
    name="用户名"
    placeholder="请输入账号"
  />
  <van-field
    v-model="password"
    type="password"
    name="密码"
    placeholder="请输入密码"
  />
  <div style="margin: 16px;">
    <van-button round block type="info" native-type="submit" square color="#21b97a"
 >注册</van-button>
  </div>
</van-form>
    <router-view></router-view>
   
   </div>
</template>
 
<script>

export default {
  name: "",
  components: {},
  props: {},
  data() {
    return {
      username: '',
      password: '',
    };
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
  onSubmit(values) {
      console.log('submit', values);
    },
    personalIformation(){
    console.log(username);
    console.log(password);

 
    }
  }
};
</script>

<style scoped lang="less">
  /deep/ .van-nav-bar__title{
    color: #fff;
  }
   /deep/.van-icon-arrow-left{
     color: #fff !important;
  }
  /deep/.van-button--square{
     color: #fff !important;
  }
  
</style>